package Framework;



import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Vector;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class btn_BottomButtons extends pnl_Ancestor {
	static String CLASS = "btn_BottomButtons";
	
	int ii_Amount = 0;
	
	public void add(JButton btn_NewBtn, int index){
		String METHOD = "AddButton(JButton btn_NewBtn)";
		debugMessage.log(CLASS + "." + METHOD + " Called.", 11);
		
		btn_NewBtn.setBounds(index * (800 / ii_Amount), 0, (800 / ii_Amount), ConfigOpts.SIZE_BOTTOMBAR_HEIGHT);
		super.add(btn_NewBtn);
		this.validate();
		
		//RedrawButtons();
		debugMessage.log(CLASS + "." + METHOD + " Finished.", 11);
	}
	
	public btn_BottomButtons(int ai_Amount) {
		String METHOD = "btn_BottomButtons(int ButtonSet)";
		debugMessage.log(CLASS + "." + METHOD + " Called.", 10);
		this.ii_Amount = ai_Amount;
		this.setLayout(null);
		this.setBounds(0,600-ConfigOpts.SIZE_BOTTOMBAR_HEIGHT,800,ConfigOpts.SIZE_BOTTOMBAR_HEIGHT);
			
		debugMessage.log(CLASS + "." + METHOD + " Finished.", 10);
		
	}

}
